Location: BondGraph Basic @ ea17eea2ce8a / BG Tutorial Biochemical Systems / Diffusion.cellml

Author:
Soroush Safaei <ssaf006@aucklanduni.ac.nz>
Date:
2017-10-08 22:56:35+13:00
Desc:
transferring files
Permanent Source URI:
https://models.fieldml.org/workspace/43b/rawfile/ea17eea2ce8af5936935d418bb84ef910325280f/BG Tutorial Biochemical Systems/Diffusion.cellml

<?xml version='1.0'?>
<model name="Diffusion" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="Units.cellml">
        <units name="per_mol" units_ref="per_mol"/>
        <units name="J_per_mol" units_ref="J_per_mol"/>
        <units name="mol_per_s" units_ref="mol_per_s"/>
    </import>
    <component name="state">
        <variable initial_value="0.0" name="t" units="second"/>
        <!-- Parameters-->
        <variable initial_value="1.0" name="K_q1" units="per_mol"/>
        <variable initial_value="1.0" name="K_q2" units="per_mol"/>
        <variable initial_value="1.0" name="K_1" units="mol_per_s"/>
        <!-- State variables-->
        <variable initial_value="1.0" name="q1" units="mole"/>
        <variable initial_value="0.0" name="q2" units="mole"/>
        <variable name="u1" units="J_per_mol"/>
        <variable name="u2" units="J_per_mol"/>
        <variable name="v1" units="mol_per_s"/>
        <!-- Conservation laws-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q1</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q2</ci>
                </apply>
                <ci>v1</ci>
            </apply>
            <!-- Constitutive relations-->
            <apply>
                <eq/>
                <ci>u1</ci>
                <apply>
                    <times/>
                    <ci>K_q1</ci>
                    <ci>q1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>u2</ci>
                <apply>
                    <times/>
                    <ci>K_q2</ci>
                    <ci>q2</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v1</ci>
                <apply>
                    <times/>
                    <ci>K_1</ci>
                    <apply>
                        <minus/>
                        <ci>u1</ci>
                        <ci>u2</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
</model>